/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sk.tuke.magsa.tools.metamodel.constraints;

import sk.tuke.magsa.tools.metamodel.Type;
import yajco.annotation.Before;

/**
 *
 * @author z00385rz
 */
public class Capital extends Constraint{
    
    @Before("capital")
    public Capital()
    {
    }
    
    @Override
    public String toString()
    {
        return "First letter sould be capital";
    }

    @Override
    public boolean supportsType(Type type) {
        return type.equals(Type.STRING);
    }
    
}
